﻿using System;

namespace ObserverSample
{
    class Program
    {
        static void Main(string[] args)
        {
            AllyConrolCenter acc = new ConcreteAllyControlCenter("科技馆");
            IObserver player1, player2, player3;
            player1 = new Player("杨过");
            player2 = new Player("东方不败");
            player3 = new Player("大头");
            acc.Jion(player1);
            acc.Jion(player2);
            acc.Jion(player3);
            player3.BeAttacked(acc);
            Console.WriteLine("Hello World!");
        }
    }
}
